import service from '@/util/request.js';

const defaultPrefix = '/users/admin';

export function loginService(user) {
  return service.post(defaultPrefix + '/login', user);
}

export function getMemberListService(userQuery) {
  return service.post(defaultPrefix + '/list', userQuery);
}

export function updateMemberService(user) {
  return service.put(defaultPrefix, user);
}

export function deleteMemberService(userId) {
  return service.delete(defaultPrefix + '/' + userId);
}